package online.westonline.com.westonline.utils;
import android.widget.Toast;
import online.westonline.com.westonline.MyApplication;
/**
 * 吐司工具
 * Created by even alone on 2018/6/2.
 */

public class ToastUtils {
    private static Toast toast;
    
    public static void showToast(String msg)
    {
        if (toast==null)
        {
            toast = Toast.makeText(MyApplication.getContext(),msg,Toast.LENGTH_SHORT);
        }
        toast.setText(msg);
        toast.show();
    }
}
